var child_process = require('child_process')
try{
  if(process.platform !== 'win32') return 
  // child_process.execSync('taskkill /F /T /IM electron.exe')
  child_process.spawn("taskkill",["/F", "/T", "/IM", "electron.exe"],{
    stdio:[process.stdin,process.stdout,process.stderr]
  })
  console.log('taskkill success')
}catch(e){
  console.log("taskkill error:",JSON.stringify(e))
}